---
category: Level 1 — Basic
created: '2020-02-16'
keywords: parent node, parentNode
title: Get the parent node of an element
---

Returns the parent node of the `ele` element:

```js
const parent = ele.parentNode;
```

## See also

-   [Check if an element is a descendant of another](https://phuoc.ng/collection/html-dom/check-if-an-element-is-a-descendant-of-another/)
-   [Get the first scrollable parent of an element](https://phuoc.ng/collection/html-dom/get-the-first-scrollable-parent-of-an-element/)
-   [Select the children of an element](https://phuoc.ng/collection/html-dom/select-the-children-of-an-element/)
-   [Swap two nodes](https://phuoc.ng/collection/html-dom/swap-two-nodes/)
-   [Zoom an image](https://phuoc.ng/collection/html-dom/zoom-an-image/)
